package com.hnhs.dao;



import com.hnhs.model.Category;
import com.hnhs.model.CategoryQuery;
import com.hnhs.model.Product;
import com.hnhs.model.ProductQuery;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ProductDao {

    //多条件查询
    public List<Product> select(ProductQuery query);

    public Integer insert(Product product);
    public Integer update(Product product);
    public Integer updateStatus(@Param("id") Integer id, @Param("status") Integer status);
}
